package cn.imvc.app.models;

import java.util.List;
import java.util.Map;

import cn.imvc.app.entities.Member;
import cn.imvc.app.entities.SalesReturn;

/**
 * 商品评论 service 接口
 * @author liujunli
 *
 */
public interface SalesReturnModel {
	
	/**
	 * 申请退换货退款
	 * @param member
	 * @param salesReturn
	 * @param goodsOrderId
	 * @return
	 */
	Map<String, String> addSalesReturn(Member member, SalesReturn salesReturn, List<Integer> goodsOrderIds);

	SalesReturn save(SalesReturn entity);
	
	/**
	 * 根据goodsOrderId串计算订单总额
	 * @param member
	 * @param goodsOrderIds
	 * @return
	 */
	List<Object[]> findPriceByGoodsOrderIds(Member member, String goodsOrderId);
}
